﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessPlatform.Core.BusinessObject.Properties
{
    internal class TableInfo : ITableInfo
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 主表
        /// </summary>
        public bool IsPrimary { get; set; }
        private IList<IPropertyInfo> _Fields;
        /// <summary>
        /// 字段列表
        /// </summary>
        IList<IPropertyInfo> ITableInfo.Fileds
        {
            get
            {
                if (_Fields == null)
                {
                    _Fields = new List<IPropertyInfo>();
                }
                return _Fields;
            }
        }
    }
}
